package com.library.dao;

import java.util.List;

import com.library.bean.Book;

public interface BookDao {
	
	List<Book> selectAllBook(int pageNum,int pageSize);
	List<Book> selectAllBook(String bookName,int pageNum,int pageSize);
	
	int insertBook(Book book);
	
	int deleteBook(int bookId);
	
	Book selectBookById(int bookId);
	
	int updateBook(Book book);
	
	List<Book> selectBook(String bookName);
	
	//获取 书的总条数
	int selectBookNum();
	int selectBookNum(String bookName);
}
